package com.swm.rest;

public class ResultService {
	int status;
	String respondBody;
	
	private static final int RESULT_OK 		= 200;	
	private static final int RESULT_BODY_OK = 204;
	
	public ResultService(int status, String respondBody) {
		super();
		this.status = status;
		this.respondBody = respondBody;
	}

	public boolean isSuccess(){
		if ( status == RESULT_OK || status == RESULT_BODY_OK )
			return true;
		return false;
	}
	
	public int getStatus() {
		return status;
	}

	public String getRespondBody() {
		return respondBody;
	}
}
